<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<#include "lib/lib.html" />
<title>添加机器码</title>
</head>
<body>
<div class="pd-20">
	<form action="${basePath}/washerInfo/addMachinecode.do" method="post"  class="form form-horizontal" id="form-area-edit">
		<input type="hidden" name="id" value="${info.id!}" />
		<div class="row cl">
			<label class="form-label col-3">负责区域：</label>
			<div class="formControls col-5"> <span class="select-box" >
				<select class="select" id="areaId" name="areaId" nullmsg="请选择">
					<#if areaList?? && areaList?size gt 0>
						<#list areaList as dl >
							<option value="${dl.id}" <#if info.areaId == dl.id>selected="selected"</#if>>${dl.areaName}</option>
						</#list>
					</#if>
				</select>
			</span> 
			</div>
			<div class="col-3"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">机器码：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" placeholder="多个机器码直接使用,隔开" value="${info.washerMachinecode!}"  id="washerMachinecode" name="washerMachinecode">
			</div>
			<div class="col-4"> </div>
		</div>
<!-- 		<div class="row cl"> -->
<!-- 			<label class="form-label col-3">收款人姓名：</label> -->
<!-- 			<div class="formControls col-5"> -->
<!-- 				<input type="text" class="input-text" value="${info.receivaName!}" id="receivaName" name="receivaName"> -->
<!-- 			</div> -->
<!-- 			<div class="col-4"> </div> -->
<!-- 		</div> -->
<!-- 		<div class="row cl"> -->
<!-- 			<label class="form-label col-3">收款人银卡卡账号：</label> -->
<!-- 			<div class="formControls col-5"> -->
<!-- 				<input type="text" class="input-text" value="${info.receivaAccount!}" id="receivaAccount" name="receivaAccount"> -->
<!-- 			</div> -->
<!-- 			<div class="col-4"> </div> -->
<!-- 		</div> -->
<!-- 		<div class="row cl"> -->
<!-- 			<label class="form-label col-3">收款银行：</label> -->
<!-- 			<div class="formControls col-5"> -->
<!-- 				<input type="text" class="input-text" value="${info.receivaBank!}" id="receivaBank" name="receivaBank"> -->
<!-- 			</div> -->
<!-- 			<div class="col-4"> </div> -->
<!-- 		</div> -->
		<div class="row cl">
			<label class="form-label col-3">机器月租金：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="${info.rentBalance/100!}" id="rentBalance" name="rentBalance">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<div class="col-9 col-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</div>
<script type="text/javascript">
$(function(){
	$("#form-area-edit").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(data){
			$.Hidemsg()
			if(data.resultCode==200){
				layer.msg('保存成功!', {
					icon : 1,
					time : 1000
				});
				parent.location.replace("${basePath}/washerInfo/list.do");
				layer_close();
			}else{
				$("#form-adm-edit").resetForm();
				layer.msg('保存失败，请你检查数据!', {
					icon : 1,
					time : 1000
				});
			}
		}
	});
});
</script>
</body>
</html>